using System;
using L=Science.Physics.GeneralPhysics;

namespace Serway.Chapter06
{
	/// <summary>
	/// Example06: Let's Go Loop-The-Loop
	/// A pilot of mass m in a jet aircraft executes a loop-the-loop, 
	/// as shown in Figure 6.7a. In this maneuver, the aircraft moves
	/// in a vertical circle of radius 2.70 km at a constant speed 
	/// of 225 m/s. Determine the force exerted by the seat on 
	/// the pilot. (A) at the bottom of the loop and (B) at the 
	/// top of the loop. Express your answers in terms of the 
	/// weight of the pilot mg.
	/// n_bottom = 2.91 mg
	/// n_top = 0.913 mg
	/// </summary>
	public class Example06
	{
		public Example06()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
		public void Compute()
		{
			// a = v^2/r
			// top : f + mg = ma; f = ma - mg = (a/g - 1)mg
			// bottom : f - mg = ma; f = ma + mg = (a/g + 1)mg
			double v = 225.0;
			double r = 2.7*1000.0;
			double a = v*v/r;
			double g = L.Constant.AccelerationOfGravity;
			double s = a/g;
			result += Convert.ToString(s);
		}
	}
}
